package com.yoona.log.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yoona.log.entity.SysLogs;
import com.yoona.system.entity.Dynamic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统日志表 Mapper 接口
 * </p>
 *
 * @author yoonada
 * @since 2020-07-31
 */
public interface SysLogsMapper extends BaseMapper<SysLogs> {


    /**
     * 分页查询
     * @param currentPage
     * @param size
     * @return
     */
    List<SysLogs> selectAllLogsByPage(@Param("currentPage") Integer currentPage, @Param("size") Integer size);

    /**
     * 查询动态数组的长度
     * @return
     */
    Integer selectAllLogsByCount();

}
